// 手机号脱敏
export const desenPhone = (phone) => {
    let reg = /^(\d{3})\d{4}(\d{4})$/;
    return phone.replace(reg, '$1****$2');
}

// 身份证脱敏
export const desenIdNo = (idNo) => {
    let reg = /^(.{6})(?:\d+)(.{4})$/;
    return idNo.replace(reg, '$1********$2');
}